package cn.itcast.bos.service.baseImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import cn.itcast.bos.dao.base.StandardRepository;
import cn.itcast.bos.domain.base.Standard;
import cn.itcast.bos.service.base.StandardService;
@Service
public class StandardServiceImpl implements StandardService{
	@Autowired
    private StandardRepository standardRepository;
	@Override
	public void save(Standard standard) {
		// TODO Auto-generated method stub
		standardRepository.save(standard);
	}
    public Page<Standard> findPageData(Pageable pageable) {
    	Page<Standard> page = standardRepository.findAll(pageable);
    	return page;
    }
	@Override
	public List<Standard> findAll() {
		// TODO Auto-generated method stub
		List<Standard> list = standardRepository.findAll();
		return list;
	}
}
